import request from '@/utils/request'

// 查询批量订单列表
export function listOrderParent(query) {
  return request({
    url: '/orderParent/orderParent/list',
    method: 'get',
    params: query
  })
}

// 查询批量订单详细
export function getOrderParent(id) {
  return request({
    url: '/orderParent/orderParent/' + id,
    method: 'get'
  })
}

// 新增批量订单
export function addOrderParent(data) {
  return request({
    url: '/orderParent/orderParent',
    method: 'post',
    data: data
  })
}

// 修改批量订单
export function updateOrderParent(data) {
  return request({
    url: '/orderParent/orderParent',
    method: 'put',
    data: data
  })
}

// 删除批量订单
export function delOrderParent(id) {
  return request({
    url: '/orderParent/orderParent/' + id,
    method: 'delete'
  })
}
